<template>
  <div id="nav">
    <h2>我是App</h2>
    <hello1></hello1>
    <hello2></hello2>
  </div>
  <router-view/>
</template>
<script>
/**
 * 2个组件之间共享变量  vuex
 */
  import Hello1 from "./views/Hello1";
  import Hello2 from "./views/Hello2";
  export default {
    name: 'App',
    components: {
      Hello1,Hello2
    }
  }
</script>
<style>

</style>
